#include "tcpServer.hpp"
#include <memory>

int main(int argc,char* args[]){
    if(argc != 2){
        std::cout<<"please using:/tcpserver port"<<std::endl;
        exit(1);
    }
    uint16_t port = atoi(args[1]);
    std::unique_ptr<tcpServer> s(new tcpServer(port));
    s->initServer();
    s->start();

    return 0;
}